SET MODULE=%1




IF NOT EXIST bin\Release\_%MODULE%.pyd GOTO ren_lib_step1
del /F /Q bin\Release\_%MODULE%.pyd

:ren_lib_step1
IF EXIST bin\Release\_%MODULE%.dll GOTO ren_lib_step2
@ECHO _%MODULE%.dll not found
GOTO move_lib


:ren_lib_step2
rename bin\Release\_%MODULE%.dll _%MODULE%.pyd


:move_lib
IF EXIST bin\Release\%MODULE%.py del /F /Q bin\Release\%MODULE%.py
IF NOT EXIST %MODULE%.py GOTO end
move %MODULE%.py bin\Release

:end
copy bin\Release\%MODULE%.py ..\..\..\install\pythonFulguro\fulguro
copy bin\Release\_%MODULE%.pyd ..\..\..\install\pythonFulguro\fulguro


